<?php
class ExploitPatch {
	public static function remove($string) {
		//TODO: better algorithm for this
		return trim(explode(")", str_replace("\0", "", explode("#", explode("~", explode("|", explode(":", trim(htmlspecialchars($string,ENT_QUOTES)))[0])[0])[0])[0]))[0]);
	}
	public static function charclean($string) {
		return preg_replace("/[^A-Za-z0-9 ]/", '', $string);
	}
	public static function numbercolon($string){
		return preg_replace("/[^0-9,-]/", '', $string);
	}
	public static function number($string){
		return preg_replace("/[^0-9]/", '', $string);
	}
}
?>
